package com.tk.exam.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@ConfigurationProperties(prefix = "system")
@EnableConfigurationProperties
@Component
public class SystemProperties {
    private String fileUploadPath;
    private String tokenExpireTime;

    public String uploadPath() {
        return System.getProperty("user.dir")
                .concat("/" + System.currentTimeMillis());
    }
}